<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="..\..\node_modules\vue\dist\vue.js"></script>
    <script src="..\..\node_modules\vuex\dist\vuex.js"></script>
</head>
<body>
<div id="app">
<!--    这个要用web服务器打开。否则mapState.js提示跨域-->
    <script src=".\mapState.js" type="module"></script>
    count : {{store.state.count}} rev : {{store.state.rev}}
    <p></p>
    <ms-c></ms-c>
    <p></p>
    <button v-on:click="add1">add1</button>
    <button v-on:click="addX(5)">add5</button>
    <button v-on:click="add1Asyn(5)">add1 asyn</button>
    <button v-on:click="sub1">sub1</button>
</div>
</body>
</html>